<?php

namespace app\api\validate;

use think\Validate;

class OrderValidate extends Validate
{

    protected $rule = [
        'title' => 'require|length:0,24',
        'type' => 'require|in:1,2',
        'brand_id' => 'require|gt:0',
        'price' => 'require',
        'link_username' => 'require',
        'link_tel'   => 'require' ,
        'desc' => 'require' ,
        'img_url' => 'require' ,
        'img_urls' => 'require' ,
    ];


    protected $field = [
        'title' => '标题',
        'type' => '类型',
        'brand_id' => '品牌',
        'price' => '价格',
        'link_username' => '联系人姓名',
        'link_tel'   => '联系人电话' ,
        'desc' => '车况描述' ,
        'img_url' => '首图' ,
        'img_urls' => '其他图' ,
    ];

}
